<#-- Includes -->
<#include "../auxftl/constants.ftl">
<#-- Package and imports  -->
package ${controllerPackage};

import net.sourceforge.stripes.action.ForwardResolution;
import net.sourceforge.stripes.action.Resolution;

/**
 * Class which represents picker list of ${entityName}
 * created: ${date?string("dd.MM.yyyy HH:mm:ss")}
 */
<#assign idName = pojo.identifierProperty.name>
<#assign idTypeName = pojo.identifierProperty.type.returnedClass.name>
public class ${entityName}PickerList extends ${entityName}List {

  /**
   * Constructor, initialization of list
   */
  public ${entityName}PickerList() {
    super();
  }

  /**
   * Applies filter on result list
   *
   * @return resolution
   * @throws java.io.IOException exception
   */
  public Resolution doFilter() throws java.io.IOException {

    // Apply filter criteria
    setCriterions(createCriterions());

    // Forward to action
    return new ForwardResolution("/${entityName}PickerList.jsp");
  }
}
